import request from '@/utils/request'
const api = {
	messageText: 'api/message/test',
	readAll: 'api/message/readAll ',
	messageList: 'api/message/list',
	messageDetails: 'api/message/detail',
	getSessionList: 'api/chat/getSessionList',
	getUserSig: 'api/chat/getUserSig',
}
// 测试推送消息
export function messageText(data) {
	return request.get(api.messageText, data)
}
// 全部已读
export function readAll(data) {
	return request.get(api.readAll, data)
}
// 消息列表
export function messageList(data) {
	return request.get(api.messageList, data)
}
// 消息详情
export function messageDetails(data) {
	return request.get(api.messageDetails, data)
}
// 回话列表
export function getSessionList(data) {
	return request.get(api.getSessionList, data)
}
// 获取当前登录用户的sig
export function getUserSig(data) {
	return request.get(api.getUserSig, data)
}